
package io.zhifei.modules.app.login.service;


import com.baomidou.mybatisplus.extension.service.IService;
import io.zhifei.modules.app.login.entity.UserEntity;
import io.zhifei.modules.app.login.form.LoginForm;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface LoginService extends IService<UserEntity> {

    Map<String, Object> queryByMobile(String tel, String passWord);

    /**
     * 用户登录
     *
     * @param form 登录表单
     * @return 返回用户ID
     */
    Map<String,Object> login(LoginForm form, HttpServletRequest request);

    void loginCount(Long userId, Integer memberOrCustomer);

    Map<String,Object> getMemberOrCustomer(Long userId);
}
